
const map = {
    "data": {
        "total": 2,
    "paged": true,
    "page": 1,
    "perPage": 20,
    "totalPages": 1,
    "search": "id > 0",
    "results": [
        {
            "id": 11,
            "ip": "192.168.56.117",
            "uuid": "0e4cc253-920a-8a46-a962-e8d062447a14",
            "operatingSystem": "银河麒麟高级服务器操作系统",
            "version": "V7.0",
            "architecture": "x86_64",
            "agentStatus": "false",
            "agentVersion": "false",
            "distribution": null,
            "installEnv": "minimal",
            "installGroups": "[]",
            "bandwidthLimit": null,
            "migrateLock": "false",
            "installTime": "2021-06-18T02:48:14Z",
            "reserved1": null,
            "reserved2": null,
            "createdAt": "2021-06-18T03:30:34.345863Z",
            "updatedAt": "2021-06-18T03:30:34.345863Z",
            data: [{"id":1, "ip": "10.1.1.1", "status": "success"},{"id":2, "ip": "10.1.1.2", "status": "success"},
            {"id":3, "ip": "10.1.1.3", "status": "success"}, {"id":4, "ip": "10.1.1.4", "status": "success"},
            ]
        },
        {
            "id": 12,
            "ip": "192.168.56.118",
            "uuid": "0e4cc253-920a-8a46-a962-e8d062447a14",
            "operatingSystem": "银河麒麟高级服务器操作系统",
            "version": "V7.0",
            "architecture": "x86_64",
            "agentStatus": "false",
            "agentVersion": "false",
            "distribution": null,
            "installEnv": "minimal",
            "installGroups": "[]",
            "bandwidthLimit": null,
            "migrateLock": "false",
            "installTime": "2021-06-18T02:48:14Z",
            "reserved1": null,
            "reserved2": null,
            "createdAt": "2021-06-18T03:30:34.345863Z",
            "updatedAt": "2021-06-18T03:30:34.345863Z",
            data: [{"id":1, "ip": "10.1.1.1", "status": "success"},{"id":2, "ip": "10.1.1.2", "status": "success"},
            {"id":3, "ip": "10.1.1.3", "status": "success"}, {"id":4, "ip": "10.1.1.4", "status": "success"},
            ]
        }
    ]
    }
}

const compare = {
    "timestamp": "2021-08-04T16:13:36+0800",
    "code": "0",
    "message": "成功",
    "data": {
        "app": {
            "grub": {
                "filePath": "/boot/efi/EFI/kylin/grub.cfg",
                "configType": "应用配置",
                "attribute": "grub",
                "data": [
                    {
                        "name": "vmlinuz",
                        "left": "root=/dev/mapper/nlas-root crashkernel=auto rd.lvm.lv=nlas/root rd.lvm.lv=nlas/swap LANG=zh_CN.UTF-8",
                        "right": "root=/dev/mapper/klas-root crashkernel=auto rd.lvm.lv=klas/root rd.lvm.lv=klas/swap smmu.bypassdev=0x1000:0x17 smmu.bypassdev=0x1000:0x15 crashkernel=1024M,high video=efifb:off video=VGA-1:640x480-32@60me"
                    }
                ]
            }
        },
        "security": {},
        "kernel": {
            "filePath": "/etc/sysctl.conf",
            "configType": "内核参数",
            "attribute": "弱配置项",
            "data": [
                {
                    "name": "fs.epoll.max_user_watches",
                    "left": "723845",
                    "right": ""
                },
                {
                    "name": "fs.file-max",
                    "left": "9223372036854775807",
                    "right": "353043"
                },
                {
                    "name": "fs.nr_open",
                    "left": "",
                    "right": "1048576"
                },
                {
                    "name": "kernel.core_pipe_limit",
                    "left": "0",
                    "right": "4"
                },
                {
                    "name": "kernel.dmesg_restrict",
                    "left": "1",
                    "right": "0"
                },
                {
                    "name": "kernel.pid_max",
                    "left": "4194304",
                    "right": ""
                },
                {
                    "name": "kernel.threads-max",
                    "left": "23524",
                    "right": ""
                },
                {
                    "name": "net.core.bpf_jit_enable",
                    "left": "",
                    "right": "0"
                },
                {
                    "name": "net.core.default_qdisc",
                    "left": "",
                    "right": "pfifo_fast"
                },
                {
                    "name": "net.core.netdev_budget",
                    "left": "1024",
                    "right": "300"
                },
                {
                    "name": "net.core.netdev_max_backlog",
                    "left": "8000",
                    "right": "1000"
                },
                {
                    "name": "net.core.optmem_max",
                    "left": "524288",
                    "right": "20480"
                },
                {
                    "name": "net.core.rmem_default",
                    "left": "2097152",
                    "right": "229376"
                },
                {
                    "name": "net.core.rmem_max",
                    "left": "2097152",
                    "right": "229376"
                },
                {
                    "name": "net.core.somaxconn",
                    "left": "512",
                    "right": "128"
                },
                {
                    "name": "net.core.wmem_default",
                    "left": "2097152",
                    "right": "229376"
                },
                {
                    "name": "net.core.wmem_max",
                    "left": "2097152",
                    "right": "229376"
                },
                {
                    "name": "net.ipv4.conf.default.accept_redirects",
                    "left": "0",
                    "right": "1"
                },
                {
                    "name": "net.ipv4.conf.default.promote_secondaries",
                    "left": "0",
                    "right": "1"
                },
                {
                    "name": "net.ipv4.conf.default.send_redirects",
                    "left": "0",
                    "right": "1"
                },
                {
                    "name": "net.ipv4.neigh.default.unres_qlen",
                    "left": "101",
                    "right": "106"
                },
                {
                    "name": "net.ipv4.neigh.default.unres_qlen_bytes",
                    "left": "212992",
                    "right": "229376"
                },
                {
                    "name": "net.ipv4.tcp_allowed_congestion_control",
                    "left": "reno cubic",
                    "right": "cubic reno"
                },
                {
                    "name": "net.ipv4.tcp_available_congestion_control",
                    "left": "reno cubic",
                    "right": "cubic reno"
                },
                {
                    "name": "net.ipv4.tcp_fin_timeout",
                    "left": "40",
                    "right": "60"
                },
                {
                    "name": "net.ipv4.tcp_limit_output_bytes",
                    "left": "1048576",
                    "right": "262144"
                },
                {
                    "name": "net.ipv4.tcp_max_syn_backlog",
                    "left": "2048",
                    "right": "128"
                },
                {
                    "name": "net.ipv4.tcp_mem",
                    "left": "2394 3194 4788",
                    "right": "2400 3203 4800"
                },
                {
                    "name": "net.ipv4.tcp_rmem",
                    "left": "4096 131072 6291456",
                    "right": "4096 87380 6291456"
                },
                {
                    "name": "net.ipv4.tcp_tw_reuse",
                    "left": "1",
                    "right": "0"
                },
                {
                    "name": "net.ipv4.udp_mem",
                    "left": "4791 6389 9582",
                    "right": "4803 6406 9606"
                },
                {
                    "name": "user.max_cgroup_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "user.max_ipc_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "user.max_mnt_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "user.max_net_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "user.max_pid_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "user.max_user_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "user.max_uts_namespaces",
                    "left": "11762",
                    "right": "3461"
                },
                {
                    "name": "vm.dirty_ratio",
                    "left": "40",
                    "right": "30"
                },
                {
                    "name": "vm.min_free_kbytes",
                    "left": "176128",
                    "right": "176512"
                },
                {
                    "name": "vm.mmap_rnd_bits",
                    "left": "18",
                    "right": "14"
                },
                {
                    "name": "vm.swappiness",
                    "left": "10",
                    "right": "30"
                },
                {
                    "name": "vm.user_reserve_kbytes",
                    "left": "110058",
                    "right": "110232"
                },
                {
                    "name": "vm.vfs_cache_pressure",
                    "left": "40",
                    "right": "100"
                }
            ]
        }
    }
}

export default {
    getAgentList: config => {
        map["xxx"] = config
        return map
    },
    systemCompare: config => {
        return compare;
    }
}